.class public Lcom/netease/newsreader/view/ImageViewTouchDelegate;
.super Ljava/lang/Object;
.source "ImageViewTouchDelegate.java"


# static fields
.field private static final DOWN:I = 0x1

.field private static final DRAG:I = 0x2

.field private static final INVALID_VALUE:I = -0x1

.field private static final NONE:I = 0x0

.field private static final ZOOM:I = 0x3


# instance fields
.field private mActivePointerId:I

.field private mLastDist:F

.field private mLastPoint:Landroid/graphics/PointF;

.field private mLastScale:F

.field private mMaximumVelocity:I

.field private mMid:Landroid/graphics/PointF;

.field private mMinimumVelocity:I

.field private mMode:I

.field private mScrollRunnable:Ljava/lang/Runnable;

.field private mScroller:Landroid/widget/Scroller;

.field private mTouchSlop:I

.field private mVelocityTracker:Landroid/view/VelocityTracker;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 3
    .parameter "context"

    .prologue
    const/high16 v2, 0x3f80

    .line 50
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 26
    const/4 v1, 0x0

    iput v1, p0, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->mMode:I

    .line 28
    const/4 v1, -0x1

    iput v1, p0, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->mActivePointerId:I

    .line 30
    new-instance v1, Landroid/graphics/PointF;

    invoke-direct {v1}, Landroid/graphics/PointF;-><init>()V

    iput-object v1, p0, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->mLastPoint:Landroid/graphics/PointF;

    .line 32
    new-instance v1, Landroid/graphics/PointF;

    invoke-direct {v1}, Landroid/graphics/PointF;-><init>()V

    iput-object v1, p0, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->mMid:Landroid/graphics/PointF;

    .line 34
    iput v2, p0, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->mLastDist:F

    .line 36
    iput v2, p0, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->mLastScale:F

    .line 51
    invoke-static {p1}, Landroid/view/ViewConfiguration;->get(Landroid/content/Context;)Landroid/view/ViewConfiguration;

    move-result-object v0

    .line 52
    .local v0, configuration:Landroid/view/ViewConfiguration;
    invoke-virtual {v0}, Landroid/view/ViewConfiguration;->getScaledTouchSlop()I

    move-result v1

    iput v1, p0, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->mTouchSlop:I

    .line 53
    invoke-virtual {v0}, Landroid/view/ViewConfiguration;->getScaledMinimumFlingVelocity()I

    move-result v1

    iput v1, p0, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->mMinimumVelocity:I

    .line 54
    invoke-virtual {v0}, Landroid/view/ViewConfiguration;->getScaledMaximumFlingVelocity()I

    move-result v1

    iput v1, p0, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->mMaximumVelocity:I

    .line 55
    new-instance v1, Landroid/widget/Scroller;

    invoke-direct {v1, p1}, Landroid/widget/Scroller;-><init>(Landroid/content/Context;)V

    iput-object v1, p0, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->mScroller:Landroid/widget/Scroller;

    .line 56
    return-void
.end method

.method static synthetic access$0(Lcom/netease/newsreader/view/ImageViewTouchDelegate;)Landroid/widget/Scroller;
    .locals 1
    .parameter

    .prologue
    .line 46
    iget-object v0, p0, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->mScroller:Landroid/widget/Scroller;

    return-object v0
.end method

.method static synthetic access$1(Lcom/netease/newsreader/view/ImageViewTouchDelegate;)Landroid/graphics/PointF;
    .locals 1
    .parameter

    .prologue
    .line 30
    iget-object v0, p0, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->mLastPoint:Landroid/graphics/PointF;

    return-object v0
.end method

.method static synthetic access$2(Lcom/netease/newsreader/view/ImageViewTouchDelegate;Lcom/netease/newsreader/view/ImageViewTouch;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 277
    invoke-direct {p0, p1}, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->endFling(Lcom/netease/newsreader/view/ImageViewTouch;)V

    return-void
.end method

.method private callImageViewerTouch(Lcom/netease/newsreader/view/ImageViewer;Landroid/view/MotionEvent;)Z
    .locals 1
    .parameter "imageViewer"
    .parameter "event"

    .prologue
    .line 218
    if-eqz p1, :cond_0

    .line 219
    invoke-virtual {p1, p2}, Lcom/netease/newsreader/view/ImageViewer;->onTouch(Landroid/view/MotionEvent;)Z

    move-result v0

    .line 221
    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method private endFling(Lcom/netease/newsreader/view/ImageViewTouch;)V
    .locals 2
    .parameter "view"

    .prologue
    .line 278
    iget-object v0, p0, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->mScroller:Landroid/widget/Scroller;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Landroid/widget/Scroller;->forceFinished(Z)V

    .line 279
    iget-object v0, p0, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->mScrollRunnable:Ljava/lang/Runnable;

    if-eqz v0, :cond_0

    .line 280
    iget-object v0, p0, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->mScrollRunnable:Ljava/lang/Runnable;

    invoke-virtual {p1, v0}, Lcom/netease/newsreader/view/ImageViewTouch;->removeCallbacks(Ljava/lang/Runnable;)Z

    .line 281
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->mScrollRunnable:Ljava/lang/Runnable;

    .line 283
    :cond_0
    return-void
.end method

.method private fling(Lcom/netease/newsreader/view/ImageViewTouch;II)V
    .locals 10
    .parameter "view"
    .parameter "xVelocity"
    .parameter "yVelocity"

    .prologue
    const/4 v8, 0x0

    const/4 v4, 0x0

    .line 241
    invoke-virtual {p1}, Lcom/netease/newsreader/view/ImageViewTouch;->getMapRect()Landroid/graphics/RectF;

    move-result-object v9

    .line 242
    .local v9, r:Landroid/graphics/RectF;
    const/4 v1, 0x0

    .line 243
    .local v1, initialX:I
    const/4 v2, 0x0

    .line 245
    .local v2, initialY:I
    if-ltz p2, :cond_1

    move v5, v8

    .line 247
    .local v5, minX:I
    :goto_0
    if-lez p2, :cond_2

    invoke-virtual {v9}, Landroid/graphics/RectF;->width()F

    move-result v0

    invoke-virtual {p1}, Lcom/netease/newsreader/view/ImageViewTouch;->getWidth()I

    move-result v3

    int-to-float v3, v3

    sub-float/2addr v0, v3

    invoke-static {v4, v0}, Ljava/lang/Math;->max(FF)F

    move-result v0

    float-to-int v6, v0

    .line 249
    .local v6, maxX:I
    :goto_1
    if-lez p3, :cond_3

    move v7, v8

    .line 251
    .local v7, minY:I
    :goto_2
    if-lez p3, :cond_0

    invoke-virtual {v9}, Landroid/graphics/RectF;->height()F

    move-result v0

    invoke-virtual {p1}, Lcom/netease/newsreader/view/ImageViewTouch;->getHeight()I

    move-result v3

    int-to-float v3, v3

    sub-float/2addr v0, v3

    invoke-static {v4, v0}, Ljava/lang/Math;->max(FF)F

    move-result v0

    float-to-int v8, v0

    .line 257
    .local v8, maxY:I
    :cond_0
    iget-object v0, p0, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->mLastPoint:Landroid/graphics/PointF;

    int-to-float v3, v1

    int-to-float v4, v2

    invoke-virtual {v0, v3, v4}, Landroid/graphics/PointF;->set(FF)V

    .line 258
    iget-object v0, p0, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->mScroller:Landroid/widget/Scroller;

    move v3, p2

    move v4, p3

    invoke-virtual/range {v0 .. v8}, Landroid/widget/Scroller;->fling(IIIIIIII)V

    .line 259
    new-instance v0, Lcom/netease/newsreader/view/ImageViewTouchDelegate$2;

    invoke-direct {v0, p0, p1}, Lcom/netease/newsreader/view/ImageViewTouchDelegate$2;-><init>(Lcom/netease/newsreader/view/ImageViewTouchDelegate;Lcom/netease/newsreader/view/ImageViewTouch;)V

    iput-object v0, p0, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->mScrollRunnable:Ljava/lang/Runnable;

    .line 273
    iget-object v0, p0, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->mScrollRunnable:Ljava/lang/Runnable;

    invoke-virtual {p1, v0}, Lcom/netease/newsreader/view/ImageViewTouch;->post(Ljava/lang/Runnable;)Z

    .line 274
    invoke-virtual {p1}, Lcom/netease/newsreader/view/ImageViewTouch;->invalidate()V

    .line 275
    return-void

    .line 245
    .end local v5           #minX:I
    .end local v6           #maxX:I
    .end local v7           #minY:I
    .end local v8           #maxY:I
    :cond_1
    invoke-virtual {v9}, Landroid/graphics/RectF;->width()F

    move-result v0

    invoke-virtual {p1}, Lcom/netease/newsreader/view/ImageViewTouch;->getWidth()I

    move-result v3

    int-to-float v3, v3

    sub-float/2addr v0, v3

    invoke-static {v4, v0}, Ljava/lang/Math;->max(FF)F

    move-result v0

    float-to-int v0, v0

    neg-int v5, v0

    goto :goto_0

    .restart local v5       #minX:I
    :cond_2
    move v6, v8

    .line 247
    goto :goto_1

    .line 249
    .restart local v6       #maxX:I
    :cond_3
    invoke-virtual {v9}, Landroid/graphics/RectF;->height()F

    move-result v0

    invoke-virtual {p1}, Lcom/netease/newsreader/view/ImageViewTouch;->getHeight()I

    move-result v3

    int-to-float v3, v3

    sub-float/2addr v0, v3

    invoke-static {v4, v0}, Ljava/lang/Math;->max(FF)F

    move-result v0

    float-to-int v0, v0

    neg-int v7, v0

    goto :goto_2
.end method

.method private midPoint(Landroid/graphics/PointF;Landroid/view/MotionEvent;)V
    .locals 7
    .parameter "point"
    .parameter "event"

    .prologue
    const/4 v6, 0x1

    const/4 v5, 0x0

    const/high16 v4, 0x4000

    .line 292
    invoke-static {}, Lcom/netease/newsreader/util/VersionCompatibilityUtil;->getMotionEventUtil()Lcom/netease/newsreader/util/VersionCompatibilityUtil$MotionEventUtil;

    move-result-object v2

    invoke-interface {v2, p2, v5}, Lcom/netease/newsreader/util/VersionCompatibilityUtil$MotionEventUtil;->getX(Landroid/view/MotionEvent;I)F

    move-result v2

    invoke-static {}, Lcom/netease/newsreader/util/VersionCompatibilityUtil;->getMotionEventUtil()Lcom/netease/newsreader/util/VersionCompatibilityUtil$MotionEventUtil;

    move-result-object v3

    invoke-interface {v3, p2, v6}, Lcom/netease/newsreader/util/VersionCompatibilityUtil$MotionEventUtil;->getX(Landroid/view/MotionEvent;I)F

    move-result v3

    add-float v0, v2, v3

    .line 293
    .local v0, x:F
    invoke-static {}, Lcom/netease/newsreader/util/VersionCompatibilityUtil;->getMotionEventUtil()Lcom/netease/newsreader/util/VersionCompatibilityUtil$MotionEventUtil;

    move-result-object v2

    invoke-interface {v2, p2, v5}, Lcom/netease/newsreader/util/VersionCompatibilityUtil$MotionEventUtil;->getY(Landroid/view/MotionEvent;I)F

    move-result v2

    invoke-static {}, Lcom/netease/newsreader/util/VersionCompatibilityUtil;->getMotionEventUtil()Lcom/netease/newsreader/util/VersionCompatibilityUtil$MotionEventUtil;

    move-result-object v3

    invoke-interface {v3, p2, v6}, Lcom/netease/newsreader/util/VersionCompatibilityUtil$MotionEventUtil;->getY(Landroid/view/MotionEvent;I)F

    move-result v3

    add-float v1, v2, v3

    .line 294
    .local v1, y:F
    div-float v2, v0, v4

    div-float v3, v1, v4

    invoke-virtual {p1, v2, v3}, Landroid/graphics/PointF;->set(FF)V

    .line 295
    return-void
.end method

.method private onSecondaryPointerUp(Landroid/view/MotionEvent;)V
    .locals 6
    .parameter "ev"

    .prologue
    .line 225
    invoke-static {}, Lcom/netease/newsreader/util/VersionCompatibilityUtil;->getMotionEventUtil()Lcom/netease/newsreader/util/VersionCompatibilityUtil$MotionEventUtil;

    move-result-object v3

    invoke-interface {v3, p1}, Lcom/netease/newsreader/util/VersionCompatibilityUtil$MotionEventUtil;->getPointerIndex(Landroid/view/MotionEvent;)I

    move-result v2

    .line 226
    .local v2, pointerIndex:I
    invoke-static {}, Lcom/netease/newsreader/util/VersionCompatibilityUtil;->getMotionEventUtil()Lcom/netease/newsreader/util/VersionCompatibilityUtil$MotionEventUtil;

    move-result-object v3

    invoke-interface {v3, p1, v2}, Lcom/netease/newsreader/util/VersionCompatibilityUtil$MotionEventUtil;->getPointerId(Landroid/view/MotionEvent;I)I

    move-result v1

    .line 227
    .local v1, pointerId:I
    iget v3, p0, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->mActivePointerId:I

    if-ne v1, v3, :cond_0

    .line 231
    if-nez v2, :cond_1

    const/4 v0, 0x1

    .line 232
    .local v0, newPointerIndex:I
    :goto_0
    iget-object v3, p0, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->mLastPoint:Landroid/graphics/PointF;

    invoke-static {}, Lcom/netease/newsreader/util/VersionCompatibilityUtil;->getMotionEventUtil()Lcom/netease/newsreader/util/VersionCompatibilityUtil$MotionEventUtil;

    move-result-object v4

    invoke-interface {v4, p1, v0}, Lcom/netease/newsreader/util/VersionCompatibilityUtil$MotionEventUtil;->getX(Landroid/view/MotionEvent;I)F

    move-result v4

    invoke-static {}, Lcom/netease/newsreader/util/VersionCompatibilityUtil;->getMotionEventUtil()Lcom/netease/newsreader/util/VersionCompatibilityUtil$MotionEventUtil;

    move-result-object v5

    invoke-interface {v5, p1, v0}, Lcom/netease/newsreader/util/VersionCompatibilityUtil$MotionEventUtil;->getY(Landroid/view/MotionEvent;I)F

    move-result v5

    invoke-virtual {v3, v4, v5}, Landroid/graphics/PointF;->set(FF)V

    .line 233
    invoke-static {}, Lcom/netease/newsreader/util/VersionCompatibilityUtil;->getMotionEventUtil()Lcom/netease/newsreader/util/VersionCompatibilityUtil$MotionEventUtil;

    move-result-object v3

    invoke-interface {v3, p1, v0}, Lcom/netease/newsreader/util/VersionCompatibilityUtil$MotionEventUtil;->getPointerId(Landroid/view/MotionEvent;I)I

    move-result v3

    iput v3, p0, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->mActivePointerId:I

    .line 234
    iget-object v3, p0, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->mVelocityTracker:Landroid/view/VelocityTracker;

    if-eqz v3, :cond_0

    .line 235
    iget-object v3, p0, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->mVelocityTracker:Landroid/view/VelocityTracker;

    invoke-virtual {v3}, Landroid/view/VelocityTracker;->clear()V

    .line 238
    .end local v0           #newPointerIndex:I
    :cond_0
    return-void

    .line 231
    :cond_1
    const/4 v0, 0x0

    goto :goto_0
.end method

.method private spacing(Landroid/view/MotionEvent;)F
    .locals 6
    .parameter "event"

    .prologue
    const/4 v5, 0x1

    const/4 v4, 0x0

    .line 286
    invoke-static {}, Lcom/netease/newsreader/util/VersionCompatibilityUtil;->getMotionEventUtil()Lcom/netease/newsreader/util/VersionCompatibilityUtil$MotionEventUtil;

    move-result-object v2

    invoke-interface {v2, p1, v4}, Lcom/netease/newsreader/util/VersionCompatibilityUtil$MotionEventUtil;->getX(Landroid/view/MotionEvent;I)F

    move-result v2

    invoke-static {}, Lcom/netease/newsreader/util/VersionCompatibilityUtil;->getMotionEventUtil()Lcom/netease/newsreader/util/VersionCompatibilityUtil$MotionEventUtil;

    move-result-object v3

    invoke-interface {v3, p1, v5}, Lcom/netease/newsreader/util/VersionCompatibilityUtil$MotionEventUtil;->getX(Landroid/view/MotionEvent;I)F

    move-result v3

    sub-float v0, v2, v3

    .line 287
    .local v0, x:F
    invoke-static {}, Lcom/netease/newsreader/util/VersionCompatibilityUtil;->getMotionEventUtil()Lcom/netease/newsreader/util/VersionCompatibilityUtil$MotionEventUtil;

    move-result-object v2

    invoke-interface {v2, p1, v4}, Lcom/netease/newsreader/util/VersionCompatibilityUtil$MotionEventUtil;->getY(Landroid/view/MotionEvent;I)F

    move-result v2

    invoke-static {}, Lcom/netease/newsreader/util/VersionCompatibilityUtil;->getMotionEventUtil()Lcom/netease/newsreader/util/VersionCompatibilityUtil$MotionEventUtil;

    move-result-object v3

    invoke-interface {v3, p1, v5}, Lcom/netease/newsreader/util/VersionCompatibilityUtil$MotionEventUtil;->getY(Landroid/view/MotionEvent;I)F

    move-result v3

    sub-float v1, v2, v3

    .line 288
    .local v1, y:F
    mul-float v2, v0, v0

    mul-float v3, v1, v1

    add-float/2addr v2, v3

    invoke-static {v2}, Landroid/util/FloatMath;->sqrt(F)F

    move-result v2

    return v2
.end method


# virtual methods
.method public computeScroll(Lcom/netease/newsreader/view/ImageViewTouch;)V
    .locals 0
    .parameter "view"

    .prologue
    .line 67
    return-void
.end method

.method public onTouch(Lcom/netease/newsreader/view/ImageViewTouch;Landroid/view/MotionEvent;)Z
    .locals 23
    .parameter "view"
    .parameter "event"

    .prologue
    .line 70
    invoke-virtual/range {p1 .. p1}, Lcom/netease/newsreader/view/ImageViewTouch;->getImageViewer()Lcom/netease/newsreader/view/ImageViewer;

    move-result-object v12

    .line 72
    .local v12, imageViewer:Lcom/netease/newsreader/view/ImageViewer;
    invoke-virtual/range {p1 .. p1}, Lcom/netease/newsreader/view/ImageViewTouch;->isReady()Z

    move-result v19

    if-nez v19, :cond_0

    .line 73
    const/16 v19, 0x0

    move/from16 v0, v19

    move-object/from16 v1, p0

    iput v0, v1, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->mMode:I

    .line 74
    invoke-virtual/range {p1 .. p1}, Lcom/netease/newsreader/view/ImageViewTouch;->getImageViewer()Lcom/netease/newsreader/view/ImageViewer;

    move-result-object v19

    move-object/from16 v0, p0

    move-object/from16 v1, v19

    move-object/from16 v2, p2

    invoke-direct {v0, v1, v2}, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->callImageViewerTouch(Lcom/netease/newsreader/view/ImageViewer;Landroid/view/MotionEvent;)Z

    move-result v19

    .line 214
    :goto_0
    return v19

    .line 77
    :cond_0
    if-eqz v12, :cond_5

    invoke-virtual {v12}, Lcom/netease/newsreader/view/ImageViewer;->hasInterpreterTouch()Z

    move-result v19

    if-eqz v19, :cond_5

    move-object/from16 v0, p0

    move-object/from16 v1, p2

    invoke-direct {v0, v12, v1}, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->callImageViewerTouch(Lcom/netease/newsreader/view/ImageViewer;Landroid/view/MotionEvent;)Z

    move-result v11

    .line 81
    .local v11, hasInterpreterTouch:Z
    :goto_1
    invoke-virtual/range {p2 .. p2}, Landroid/view/MotionEvent;->getAction()I

    move-result v19

    if-nez v19, :cond_1

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->mVelocityTracker:Landroid/view/VelocityTracker;

    move-object/from16 v19, v0

    if-eqz v19, :cond_1

    .line 82
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->mVelocityTracker:Landroid/view/VelocityTracker;

    move-object/from16 v19, v0

    invoke-virtual/range {v19 .. v19}, Landroid/view/VelocityTracker;->clear()V

    .line 83
    const/16 v19, 0x0

    move-object/from16 v0, v19

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->mVelocityTracker:Landroid/view/VelocityTracker;

    .line 86
    :cond_1
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->mVelocityTracker:Landroid/view/VelocityTracker;

    move-object/from16 v19, v0

    if-nez v19, :cond_2

    .line 87
    invoke-static {}, Landroid/view/VelocityTracker;->obtain()Landroid/view/VelocityTracker;

    move-result-object v19

    move-object/from16 v0, v19

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->mVelocityTracker:Landroid/view/VelocityTracker;

    .line 89
    :cond_2
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->mVelocityTracker:Landroid/view/VelocityTracker;

    move-object/from16 v19, v0

    move-object/from16 v0, v19

    move-object/from16 v1, p2

    invoke-virtual {v0, v1}, Landroid/view/VelocityTracker;->addMovement(Landroid/view/MotionEvent;)V

    .line 91
    const/16 v10, 0xf

    .line 92
    .local v10, edge:I
    invoke-static {}, Lcom/netease/newsreader/util/VersionCompatibilityUtil;->getMotionEventUtil()Lcom/netease/newsreader/util/VersionCompatibilityUtil$MotionEventUtil;

    move-result-object v19

    move-object/from16 v0, v19

    move-object/from16 v1, p2

    invoke-interface {v0, v1}, Lcom/netease/newsreader/util/VersionCompatibilityUtil$MotionEventUtil;->getAction(Landroid/view/MotionEvent;)I

    move-result v5

    .line 93
    .local v5, action:I
    packed-switch v5, :pswitch_data_0

    .line 205
    :cond_3
    :goto_2
    :pswitch_0
    invoke-virtual {v12}, Lcom/netease/newsreader/view/ImageViewer;->isVertical()Z

    move-result v19

    if-eqz v19, :cond_15

    const/16 v9, 0xc

    .line 208
    .local v9, e:I
    :goto_3
    and-int v19, v10, v9

    if-nez v19, :cond_16

    const/4 v6, 0x1

    .line 210
    .local v6, dealed:Z
    :goto_4
    if-nez v11, :cond_4

    if-nez v6, :cond_4

    .line 211
    move-object/from16 v0, p0

    move-object/from16 v1, p2

    invoke-direct {v0, v12, v1}, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->callImageViewerTouch(Lcom/netease/newsreader/view/ImageViewer;Landroid/view/MotionEvent;)Z

    .line 214
    :cond_4
    const/16 v19, 0x1

    goto :goto_0

    .line 79
    .end local v5           #action:I
    .end local v6           #dealed:Z
    .end local v9           #e:I
    .end local v10           #edge:I
    .end local v11           #hasInterpreterTouch:Z
    :cond_5
    const/4 v11, 0x0

    goto :goto_1

    .line 95
    .restart local v5       #action:I
    .restart local v10       #edge:I
    .restart local v11       #hasInterpreterTouch:Z
    :pswitch_1
    invoke-direct/range {p0 .. p1}, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->endFling(Lcom/netease/newsreader/view/ImageViewTouch;)V

    .line 96
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->mLastPoint:Landroid/graphics/PointF;

    move-object/from16 v19, v0

    invoke-virtual/range {p2 .. p2}, Landroid/view/MotionEvent;->getX()F

    move-result v20

    invoke-virtual/range {p2 .. p2}, Landroid/view/MotionEvent;->getY()F

    move-result v21

    invoke-virtual/range {v19 .. v21}, Landroid/graphics/PointF;->set(FF)V

    .line 97
    const/16 v19, 0x1

    move/from16 v0, v19

    move-object/from16 v1, p0

    iput v0, v1, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->mMode:I

    goto :goto_2

    .line 100
    :pswitch_2
    invoke-static {}, Lcom/netease/newsreader/util/VersionCompatibilityUtil;->getMotionEventUtil()Lcom/netease/newsreader/util/VersionCompatibilityUtil$MotionEventUtil;

    move-result-object v19

    move-object/from16 v0, v19

    move-object/from16 v1, p2

    invoke-interface {v0, v1}, Lcom/netease/newsreader/util/VersionCompatibilityUtil$MotionEventUtil;->getPointerCount(Landroid/view/MotionEvent;)F

    move-result v19

    const/high16 v20, 0x4000

    cmpl-float v19, v19, v20

    if-nez v19, :cond_3

    .line 101
    invoke-static {}, Lcom/netease/newsreader/util/VersionCompatibilityUtil;->getMotionEventUtil()Lcom/netease/newsreader/util/VersionCompatibilityUtil$MotionEventUtil;

    move-result-object v19

    const/16 v20, 0x0

    move-object/from16 v0, v19

    move-object/from16 v1, p2

    move/from16 v2, v20

    invoke-interface {v0, v1, v2}, Lcom/netease/newsreader/util/VersionCompatibilityUtil$MotionEventUtil;->getPointerId(Landroid/view/MotionEvent;I)I

    move-result v19

    move/from16 v0, v19

    move-object/from16 v1, p0

    iput v0, v1, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->mActivePointerId:I

    .line 102
    const/16 v19, 0x3

    move/from16 v0, v19

    move-object/from16 v1, p0

    iput v0, v1, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->mMode:I

    .line 103
    move-object/from16 v0, p0

    move-object/from16 v1, p2

    invoke-direct {v0, v1}, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->spacing(Landroid/view/MotionEvent;)F

    move-result v19

    move/from16 v0, v19

    move-object/from16 v1, p0

    iput v0, v1, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->mLastDist:F

    .line 104
    move-object/from16 v0, p0

    iget v0, v0, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->mLastDist:F

    move/from16 v19, v0

    const/high16 v20, 0x4120

    cmpl-float v19, v19, v20

    if-lez v19, :cond_3

    .line 105
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->mMid:Landroid/graphics/PointF;

    move-object/from16 v19, v0

    move-object/from16 v0, p0

    move-object/from16 v1, v19

    move-object/from16 v2, p2

    invoke-direct {v0, v1, v2}, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->midPoint(Landroid/graphics/PointF;Landroid/view/MotionEvent;)V

    goto/16 :goto_2

    .line 110
    :pswitch_3
    move-object/from16 v0, p0

    move-object/from16 v1, p2

    invoke-direct {v0, v1}, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->onSecondaryPointerUp(Landroid/view/MotionEvent;)V

    .line 111
    invoke-static {}, Lcom/netease/newsreader/util/VersionCompatibilityUtil;->getMotionEventUtil()Lcom/netease/newsreader/util/VersionCompatibilityUtil$MotionEventUtil;

    move-result-object v19

    move-object/from16 v0, v19

    move-object/from16 v1, p2

    invoke-interface {v0, v1}, Lcom/netease/newsreader/util/VersionCompatibilityUtil$MotionEventUtil;->getPointerCount(Landroid/view/MotionEvent;)F

    move-result v19

    const/high16 v20, 0x4000

    cmpl-float v19, v19, v20

    if-nez v19, :cond_3

    .line 112
    invoke-virtual/range {p1 .. p1}, Lcom/netease/newsreader/view/ImageViewTouch;->getScale()F

    move-result v14

    .line 113
    .local v14, scale:F
    const/high16 v19, 0x3f80

    cmpg-float v19, v14, v19

    if-gez v19, :cond_7

    .line 114
    const/high16 v19, 0x3f80

    move/from16 v0, v19

    move-object/from16 v1, p0

    iput v0, v1, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->mLastScale:F

    .line 115
    const/high16 v19, 0x3f80

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->mMid:Landroid/graphics/PointF;

    move-object/from16 v20, v0

    move-object/from16 v0, v20

    iget v0, v0, Landroid/graphics/PointF;->x:F

    move/from16 v20, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->mMid:Landroid/graphics/PointF;

    move-object/from16 v21, v0

    move-object/from16 v0, v21

    iget v0, v0, Landroid/graphics/PointF;->y:F

    move/from16 v21, v0

    const/high16 v22, 0x4348

    move-object/from16 v0, p1

    move/from16 v1, v19

    move/from16 v2, v20

    move/from16 v3, v21

    move/from16 v4, v22

    invoke-virtual {v0, v1, v2, v3, v4}, Lcom/netease/newsreader/view/ImageViewTouch;->zoomTo(FFFF)V

    .line 121
    :cond_6
    :goto_5
    const/16 v19, 0x2

    move/from16 v0, v19

    move-object/from16 v1, p0

    iput v0, v1, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->mMode:I

    goto/16 :goto_2

    .line 116
    :cond_7
    invoke-virtual/range {p1 .. p1}, Lcom/netease/newsreader/view/ImageViewTouch;->getMaxZoom()F

    move-result v19

    cmpl-float v19, v14, v19

    if-ltz v19, :cond_6

    .line 117
    invoke-virtual/range {p1 .. p1}, Lcom/netease/newsreader/view/ImageViewTouch;->getMaxZoom()F

    move-result v19

    move/from16 v0, v19

    move-object/from16 v1, p0

    iput v0, v1, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->mLastScale:F

    .line 118
    invoke-virtual/range {p1 .. p1}, Lcom/netease/newsreader/view/ImageViewTouch;->getMaxZoom()F

    move-result v19

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->mMid:Landroid/graphics/PointF;

    move-object/from16 v20, v0

    move-object/from16 v0, v20

    iget v0, v0, Landroid/graphics/PointF;->x:F

    move/from16 v20, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->mMid:Landroid/graphics/PointF;

    move-object/from16 v21, v0

    move-object/from16 v0, v21

    iget v0, v0, Landroid/graphics/PointF;->y:F

    move/from16 v21, v0

    const/high16 v22, 0x4348

    move-object/from16 v0, p1

    move/from16 v1, v19

    move/from16 v2, v20

    move/from16 v3, v21

    move/from16 v4, v22

    invoke-virtual {v0, v1, v2, v3, v4}, Lcom/netease/newsreader/view/ImageViewTouch;->zoomTo(FFFF)V

    goto :goto_5

    .line 126
    .end local v14           #scale:F
    :pswitch_4
    move-object/from16 v0, p0

    iget v0, v0, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->mMode:I

    move/from16 v19, v0

    const/16 v20, 0x1

    move/from16 v0, v19

    move/from16 v1, v20

    if-ne v0, v1, :cond_a

    .line 127
    invoke-virtual/range {p2 .. p2}, Landroid/view/MotionEvent;->getX()F

    move-result v15

    .line 128
    .local v15, x:F
    invoke-virtual/range {p2 .. p2}, Landroid/view/MotionEvent;->getY()F

    move-result v17

    .line 129
    .local v17, y:F
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->mLastPoint:Landroid/graphics/PointF;

    move-object/from16 v19, v0

    move-object/from16 v0, v19

    iget v0, v0, Landroid/graphics/PointF;->x:F

    move/from16 v19, v0

    sub-float v7, v15, v19

    .line 130
    .local v7, deltaX:F
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->mLastPoint:Landroid/graphics/PointF;

    move-object/from16 v19, v0

    move-object/from16 v0, v19

    iget v0, v0, Landroid/graphics/PointF;->y:F

    move/from16 v19, v0

    sub-float v8, v17, v19

    .line 132
    .local v8, deltaY:F
    invoke-static {v7}, Ljava/lang/Math;->abs(F)F

    move-result v19

    move-object/from16 v0, p0

    iget v0, v0, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->mTouchSlop:I

    move/from16 v20, v0

    move/from16 v0, v20

    int-to-float v0, v0

    move/from16 v20, v0

    cmpl-float v19, v19, v20

    if-gtz v19, :cond_8

    invoke-static {v8}, Ljava/lang/Math;->abs(F)F

    move-result v19

    move-object/from16 v0, p0

    iget v0, v0, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->mTouchSlop:I

    move/from16 v20, v0

    move/from16 v0, v20

    int-to-float v0, v0

    move/from16 v20, v0

    cmpl-float v19, v19, v20

    if-lez v19, :cond_9

    .line 133
    :cond_8
    const/16 v19, 0x2

    move/from16 v0, v19

    move-object/from16 v1, p0

    iput v0, v1, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->mMode:I

    .line 135
    :cond_9
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->mLastPoint:Landroid/graphics/PointF;

    move-object/from16 v19, v0

    move-object/from16 v0, v19

    move/from16 v1, v17

    invoke-virtual {v0, v15, v1}, Landroid/graphics/PointF;->set(FF)V

    .line 138
    .end local v7           #deltaX:F
    .end local v8           #deltaY:F
    .end local v15           #x:F
    .end local v17           #y:F
    :cond_a
    move-object/from16 v0, p0

    iget v0, v0, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->mMode:I

    move/from16 v19, v0

    const/16 v20, 0x2

    move/from16 v0, v19

    move/from16 v1, v20

    if-ne v0, v1, :cond_b

    if-nez v11, :cond_b

    .line 139
    invoke-virtual/range {p2 .. p2}, Landroid/view/MotionEvent;->getX()F

    move-result v15

    .line 140
    .restart local v15       #x:F
    invoke-virtual/range {p2 .. p2}, Landroid/view/MotionEvent;->getY()F

    move-result v17

    .line 141
    .restart local v17       #y:F
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->mLastPoint:Landroid/graphics/PointF;

    move-object/from16 v19, v0

    move-object/from16 v0, v19

    iget v0, v0, Landroid/graphics/PointF;->x:F

    move/from16 v19, v0

    sub-float v19, v15, v19

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->mLastPoint:Landroid/graphics/PointF;

    move-object/from16 v20, v0

    move-object/from16 v0, v20

    iget v0, v0, Landroid/graphics/PointF;->y:F

    move/from16 v20, v0

    sub-float v20, v17, v20

    move-object/from16 v0, p1

    move/from16 v1, v19

    move/from16 v2, v20

    invoke-virtual {v0, v1, v2}, Lcom/netease/newsreader/view/ImageViewTouch;->postTranslateCenter(FF)I

    move-result v10

    .line 146
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->mLastPoint:Landroid/graphics/PointF;

    move-object/from16 v19, v0

    move-object/from16 v0, v19

    move/from16 v1, v17

    invoke-virtual {v0, v15, v1}, Landroid/graphics/PointF;->set(FF)V

    goto/16 :goto_2

    .line 147
    .end local v15           #x:F
    .end local v17           #y:F
    :cond_b
    move-object/from16 v0, p0

    iget v0, v0, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->mMode:I

    move/from16 v19, v0

    const/16 v20, 0x3

    move/from16 v0, v19

    move/from16 v1, v20

    if-ne v0, v1, :cond_3

    if-nez v11, :cond_3

    .line 148
    move-object/from16 v0, p0

    move-object/from16 v1, p2

    invoke-direct {v0, v1}, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->spacing(Landroid/view/MotionEvent;)F

    move-result v13

    .line 149
    .local v13, newDist:F
    const/high16 v19, 0x4120

    cmpl-float v19, v13, v19

    if-lez v19, :cond_c

    .line 150
    move-object/from16 v0, p0

    iget v0, v0, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->mLastScale:F

    move/from16 v19, v0

    move-object/from16 v0, p0

    iget v0, v0, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->mLastDist:F

    move/from16 v20, v0

    div-float v20, v13, v20

    mul-float v19, v19, v20

    move/from16 v0, v19

    move-object/from16 v1, p0

    iput v0, v1, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->mLastScale:F

    .line 151
    move-object/from16 v0, p0

    iget v0, v0, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->mLastScale:F

    move/from16 v19, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->mMid:Landroid/graphics/PointF;

    move-object/from16 v20, v0

    move-object/from16 v0, v20

    iget v0, v0, Landroid/graphics/PointF;->x:F

    move/from16 v20, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->mMid:Landroid/graphics/PointF;

    move-object/from16 v21, v0

    move-object/from16 v0, v21

    iget v0, v0, Landroid/graphics/PointF;->y:F

    move/from16 v21, v0

    move-object/from16 v0, p1

    move/from16 v1, v19

    move/from16 v2, v20

    move/from16 v3, v21

    invoke-virtual {v0, v1, v2, v3}, Lcom/netease/newsreader/view/ImageViewTouch;->zoomTo(FFF)V

    .line 152
    move-object/from16 v0, p0

    iput v13, v0, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->mLastDist:F

    .line 154
    :cond_c
    const/4 v10, 0x0

    .line 157
    goto/16 :goto_2

    .line 160
    .end local v13           #newDist:F
    :pswitch_5
    move-object/from16 v0, p0

    iget v0, v0, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->mMode:I

    move/from16 v19, v0

    const/16 v20, 0x1

    move/from16 v0, v19

    move/from16 v1, v20

    if-ne v0, v1, :cond_e

    .line 161
    new-instance v19, Lcom/netease/newsreader/view/ImageViewTouchDelegate$1;

    move-object/from16 v0, v19

    move-object/from16 v1, p0

    invoke-direct {v0, v1, v12}, Lcom/netease/newsreader/view/ImageViewTouchDelegate$1;-><init>(Lcom/netease/newsreader/view/ImageViewTouchDelegate;Lcom/netease/newsreader/view/ImageViewer;)V

    move-object/from16 v0, v19

    invoke-virtual {v12, v0}, Lcom/netease/newsreader/view/ImageViewer;->post(Ljava/lang/Runnable;)Z

    .line 186
    :goto_6
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->mVelocityTracker:Landroid/view/VelocityTracker;

    move-object/from16 v19, v0

    if-eqz v19, :cond_d

    .line 187
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->mVelocityTracker:Landroid/view/VelocityTracker;

    move-object/from16 v19, v0

    invoke-virtual/range {v19 .. v19}, Landroid/view/VelocityTracker;->recycle()V

    .line 188
    const/16 v19, 0x0

    move-object/from16 v0, v19

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->mVelocityTracker:Landroid/view/VelocityTracker;

    .line 190
    :cond_d
    const/16 v19, -0x1

    move/from16 v0, v19

    move-object/from16 v1, p0

    iput v0, v1, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->mActivePointerId:I

    .line 191
    const/16 v19, 0x0

    move/from16 v0, v19

    move-object/from16 v1, p0

    iput v0, v1, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->mMode:I

    goto/16 :goto_2

    .line 167
    :cond_e
    move-object/from16 v0, p0

    iget v0, v0, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->mMode:I

    move/from16 v19, v0

    const/16 v20, 0x2

    move/from16 v0, v19

    move/from16 v1, v20

    if-ne v0, v1, :cond_13

    .line 168
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->mVelocityTracker:Landroid/view/VelocityTracker;

    move-object/from16 v19, v0

    const/16 v20, 0x3e8

    move-object/from16 v0, p0

    iget v0, v0, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->mMaximumVelocity:I

    move/from16 v21, v0

    move/from16 v0, v21

    int-to-float v0, v0

    move/from16 v21, v0

    invoke-virtual/range {v19 .. v21}, Landroid/view/VelocityTracker;->computeCurrentVelocity(IF)V

    .line 169
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->mVelocityTracker:Landroid/view/VelocityTracker;

    move-object/from16 v19, v0

    invoke-virtual/range {v19 .. v19}, Landroid/view/VelocityTracker;->getXVelocity()F

    move-result v19

    move/from16 v0, v19

    float-to-int v0, v0

    move/from16 v16, v0

    .line 170
    .local v16, xVelocity:I
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->mVelocityTracker:Landroid/view/VelocityTracker;

    move-object/from16 v19, v0

    invoke-virtual/range {v19 .. v19}, Landroid/view/VelocityTracker;->getYVelocity()F

    move-result v19

    move/from16 v0, v19

    float-to-int v0, v0

    move/from16 v18, v0

    .line 171
    .local v18, yVelocity:I
    invoke-static/range {v16 .. v16}, Ljava/lang/Math;->abs(I)I

    move-result v19

    move-object/from16 v0, p0

    iget v0, v0, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->mMinimumVelocity:I

    move/from16 v20, v0

    move/from16 v0, v19

    move/from16 v1, v20

    if-gt v0, v1, :cond_f

    .line 172
    invoke-static/range {v18 .. v18}, Ljava/lang/Math;->abs(I)I

    move-result v19

    move-object/from16 v0, p0

    iget v0, v0, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->mMinimumVelocity:I

    move/from16 v20, v0

    move/from16 v0, v19

    move/from16 v1, v20

    if-le v0, v1, :cond_12

    .line 173
    :cond_f
    invoke-static/range {v16 .. v16}, Ljava/lang/Math;->abs(I)I

    move-result v19

    move-object/from16 v0, p0

    iget v0, v0, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->mMinimumVelocity:I

    move/from16 v20, v0

    move/from16 v0, v19

    move/from16 v1, v20

    if-gt v0, v1, :cond_10

    .line 174
    const/16 v16, 0x0

    .line 176
    :cond_10
    invoke-static/range {v18 .. v18}, Ljava/lang/Math;->abs(I)I

    move-result v19

    move-object/from16 v0, p0

    iget v0, v0, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->mMinimumVelocity:I

    move/from16 v20, v0

    move/from16 v0, v19

    move/from16 v1, v20

    if-gt v0, v1, :cond_11

    .line 177
    const/16 v18, 0x0

    .line 179
    :cond_11
    move/from16 v0, v16

    neg-int v0, v0

    move/from16 v19, v0

    move/from16 v0, v18

    neg-int v0, v0

    move/from16 v20, v0

    move-object/from16 v0, p0

    move-object/from16 v1, p1

    move/from16 v2, v19

    move/from16 v3, v20

    invoke-direct {v0, v1, v2, v3}, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->fling(Lcom/netease/newsreader/view/ImageViewTouch;II)V

    goto/16 :goto_6

    .line 181
    :cond_12
    const/16 v19, 0x1

    const/16 v20, 0x1

    const/high16 v21, 0x4348

    move-object/from16 v0, p1

    move/from16 v1, v19

    move/from16 v2, v20

    move/from16 v3, v21

    invoke-virtual {v0, v1, v2, v3}, Lcom/netease/newsreader/view/ImageViewTouch;->center(ZZF)V

    goto/16 :goto_6

    .line 184
    .end local v16           #xVelocity:I
    .end local v18           #yVelocity:I
    :cond_13
    const/16 v19, 0x1

    const/16 v20, 0x1

    const/high16 v21, 0x4348

    move-object/from16 v0, p1

    move/from16 v1, v19

    move/from16 v2, v20

    move/from16 v3, v21

    invoke-virtual {v0, v1, v2, v3}, Lcom/netease/newsreader/view/ImageViewTouch;->center(ZZF)V

    goto/16 :goto_6

    .line 194
    :pswitch_6
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->mVelocityTracker:Landroid/view/VelocityTracker;

    move-object/from16 v19, v0

    if-eqz v19, :cond_14

    .line 195
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->mVelocityTracker:Landroid/view/VelocityTracker;

    move-object/from16 v19, v0

    invoke-virtual/range {v19 .. v19}, Landroid/view/VelocityTracker;->recycle()V

    .line 196
    const/16 v19, 0x0

    move-object/from16 v0, v19

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->mVelocityTracker:Landroid/view/VelocityTracker;

    .line 198
    :cond_14
    const/16 v19, -0x1

    move/from16 v0, v19

    move-object/from16 v1, p0

    iput v0, v1, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->mActivePointerId:I

    .line 199
    const/16 v19, 0x0

    move/from16 v0, v19

    move-object/from16 v1, p0

    iput v0, v1, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->mMode:I

    .line 200
    const/16 v19, 0x1

    const/16 v20, 0x1

    const/high16 v21, 0x4348

    move-object/from16 v0, p1

    move/from16 v1, v19

    move/from16 v2, v20

    move/from16 v3, v21

    invoke-virtual {v0, v1, v2, v3}, Lcom/netease/newsreader/view/ImageViewTouch;->center(ZZF)V

    goto/16 :goto_2

    .line 206
    :cond_15
    const/4 v9, 0x3

    goto/16 :goto_3

    .line 208
    .restart local v9       #e:I
    :cond_16
    const/4 v6, 0x0

    goto/16 :goto_4

    .line 93
    nop

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_1
        :pswitch_5
        :pswitch_4
        :pswitch_6
        :pswitch_0
        :pswitch_2
        :pswitch_3
    .end packed-switch
.end method
